﻿
using BCCommon;
using BCCommon.Enums;
using BCData.TMS.OrderFreightAppendRecord;
using BCDto.TMS.OrderFreightAppendRecord;
using BCEntity.TMS.OrderFreightAppendRecord;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.TMS.OrderFreightAppendRecord
{
	/// <summary>
	/// 订单运费追加记录
	/// </summary>
	public interface IOrderFreightAppendRecordService
	{
		#region  成员方法
		/// <summary>
		/// 是否存在此记录
		/// </summary>
		/// <param name="orderFreightAppendRecordId">订单运费追加记录Id</param>
		bool Exists(long orderFreightAppendRecordId);
		/// <summary>
		/// 添加订单运费追加记录
		/// </summary>
		/// <param name="requestDto">订单运费追加记录信息</param>
		OrderFreightAppendRecordDto Add(OrderFreightAppendRecordRequestDto requestDto);
		/// <summary>
		/// 更新订单运费追加记录
		/// </summary>
		/// <param name="putDto">订单运费追加记录信息</param>
		OrderFreightAppendRecordDto Update(OrderFreightAppendRecordPutDto putDto);
		/// <summary>
		/// 删除订单运费追加记录
		/// </summary>
		/// <param name="orderFreightAppendRecordId">订单运费追加记录Id</param>
		bool Delete(long orderFreightAppendRecordId);
		/// <summary>
		/// 获取订单运费追加记录
		/// </summary>
		/// <param name="orderFreightAppendRecordId">订单运费追加记录Id</param>
		OrderFreightAppendRecordDto Get(long orderFreightAppendRecordId);
		/// <summary>
		/// 获取订单运费追加记录列表
		/// </summary>
		IEnumerable<OrderFreightAppendRecordDto> GetList();
		/// <summary>
		/// 获取订单运费追加记录分页列表
		/// </summary>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">订单运费追加记录每页数据条数</param>
		PageableList<OrderFreightAppendRecordDto> Query(DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		#endregion  成员方法
	}
}